package com.peace.hospital.entity.hospitalization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 住院病人信息表
 * </p>
 *
 * @author xie
 * @since 2019-11-06
 */

@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Inpatientmessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "inpid", type = IdType.AUTO)
    private Integer inpid;      //住院id

    private Integer sckid;      //病床id

    private Integer pid;        //病人id

    private Integer depid;      //科室id

    private Integer satid;

    private String pname;



    private LocalDateTime inpadmdate;   //入住时间

    private LocalDateTime inpdischargedate; //离开日期

    private String inpaddress;      //家庭住址

    private String inpcontact;      //联系方式

    private String inpcuarantee;    //担保人

    private String inpleavehos;     //出院结论

    private Double inpdeposit;  //押金

    private String inpdbsource;     //数据库名

    public Inpatientmessage() {
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Inpatientmessage(Integer inpid, Integer sckid, Integer pid, Integer depid, Integer satid, String pname, LocalDateTime inpadmdate, LocalDateTime inpdischargedate, String inpaddress, String inpcontact, String inpcuarantee, String inpleavehos, Double inpdeposit, String inpdbsource) {
        this.inpid = inpid;
        this.sckid = sckid;
        this.pid = pid;
        this.depid = depid;
        this.satid = satid;
        this.pname = pname;
        this.inpadmdate = inpadmdate;
        this.inpdischargedate = inpdischargedate;
        this.inpaddress = inpaddress;
        this.inpcontact = inpcontact;
        this.inpcuarantee = inpcuarantee;
        this.inpleavehos = inpleavehos;
        this.inpdeposit = inpdeposit;
        this.inpdbsource = inpdbsource;
    }

    @Override
    public String toString() {
        return "Inpatientmessage{" +
                "inpid=" + inpid +
                ", sckid=" + sckid +
                ", pid=" + pid +
                ", depid=" + depid +
                ", satid=" + satid +
                ", inpadmdate=" + inpadmdate +
                ", inpdischargedate=" + inpdischargedate +
                ", inpaddress='" + inpaddress + '\'' +
                ", inpcontact='" + inpcontact + '\'' +
                ", inpcuarantee='" + inpcuarantee + '\'' +
                ", inpleavehos='" + inpleavehos + '\'' +
                ", inpdeposit=" + inpdeposit +
                ", inpdbsource='" + inpdbsource + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getInpid() {
        return inpid;
    }

    public void setInpid(Integer inpid) {
        this.inpid = inpid;
    }

    public Integer getSckid() {
        return sckid;
    }

    public void setSckid(Integer sckid) {
        this.sckid = sckid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getDepid() {
        return depid;
    }

    public void setDepid(Integer depid) {
        this.depid = depid;
    }

    public Integer getSatid() {
        return satid;
    }

    public void setSatid(Integer satid) {
        this.satid = satid;
    }

    public LocalDateTime getInpadmdate() {
        return inpadmdate;
    }

    public void setInpadmdate(LocalDateTime inpadmdate) {
        this.inpadmdate = inpadmdate;
    }

    public LocalDateTime getInpdischargedate() {
        return inpdischargedate;
    }

    public void setInpdischargedate(LocalDateTime inpdischargedate) {
        this.inpdischargedate = inpdischargedate;
    }

    public String getInpaddress() {
        return inpaddress;
    }

    public void setInpaddress(String inpaddress) {
        this.inpaddress = inpaddress;
    }

    public String getInpcontact() {
        return inpcontact;
    }

    public void setInpcontact(String inpcontact) {
        this.inpcontact = inpcontact;
    }

    public String getInpcuarantee() {
        return inpcuarantee;
    }

    public void setInpcuarantee(String inpcuarantee) {
        this.inpcuarantee = inpcuarantee;
    }

    public String getInpleavehos() {
        return inpleavehos;
    }

    public void setInpleavehos(String inpleavehos) {
        this.inpleavehos = inpleavehos;
    }

    public Double getInpdeposit() {
        return inpdeposit;
    }

    public void setInpdeposit(Double inpdeposit) {
        this.inpdeposit = inpdeposit;
    }

    public String getInpdbsource() {
        return inpdbsource;
    }

    public void setInpdbsource(String inpdbsource) {
        this.inpdbsource = inpdbsource;
    }
}
